﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MyMovieInfo.BadExample
{
    // interface segregation principle - bad example
    public interface IWorker
    {
        void work();
        void eat();
    }

    public class Worker : IWorker
    {
        public void work()
        {
            // ....working
        }
        public void eat()
        {
            // ...... eating in launch break
        }
    }

    public class SuperWorker : IWorker
    {
        public void work()
        {
            //.... working much more
        }

        public void eat()
        {
            //.... eating in launch break
        }
    }

    class Manager
    {
        private IWorker _worker;
        public void setWorker(IWorker w)
        {
            _worker = w;
        }

        public void manage()
        {
            _worker.work();
        }
    }
}
